<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('pdf_images', function (Blueprint $table) {
            $table->id();
            $table->integer('category_id')->comment('年级id');
            $table->string('url')->comment('地址');
            $table->integer('width')->comment('图片宽');
            $table->integer('height')->comment('图片高');
            $table->integer('page')->comment('页码');
            $table->integer('real_page')->comment('真实页码');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('pdf_images');
    }
};
